Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_cli): exit with error code while applying fixes #4270

Merged
merged 4 commits into from
Mar 10, 2023

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Mar 7, 2023

Summary

Closes #4156

While applying fixes, we track the errors and the fixes. If errors exceed 0, we exit with a diagnostic.

I also uncovered a bug inside the logic that decides which rules should be applied.

Test Plan

Updated the current tests to reflect the new behaviour

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit b27d280
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/640afe54766e4a0008f17274

@ematipico ematipico force-pushed the fix/check-apply branch 2 times, most recently from af07951 to 3b1161b Compare March 7, 2023 09:46
@github-actions
Copy link

Parser conformance results on ubuntu-latest

js/262

Test result main count This PR count Difference
Total 48647 48647 0
Passed 47582 47582 0
Failed 1065 1065 0
Panics 0 0 0
Coverage 97.81% 97.81% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6093 6093 0
Passed 1783 1783 0
Failed 4310 4310 0
Panics 0 0 0
Coverage 29.26% 29.26% 0.00%

ts/babel

Test result main count This PR count Difference
Total 639 639 0
Passed 568 568 0
Failed 71 71 0
Panics 0 0 0
Coverage 88.89% 88.89% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 16740 16740 0
Passed 12814 12814 0
Failed 3926 3926 0
Panics 0 0 0
Coverage 76.55% 76.55% 0.00%

@ematipico ematipico merged commit 92c3996 into main Mar 10, 2023
@ematipico ematipico deleted the fix/check-apply branch March 10, 2023 10:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 rome check with --apply-suggested should error when there are remaining issues after applying fixes
1 participant